Optimal. Leaf size=115 \[ -\frac {\left (4 b c^2+3 a d^2\right ) x^2}{3 d^4 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {b x^4}{3 d^2 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {2 \left (4 b c^2+3 a d^2\right ) \sqrt {-c+d x} \sqrt {c+d x}}{3 d^6} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 115, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {471, 100, 21,
75} \begin {gather*} \frac {2 \sqrt {d x-c} \sqrt {c+d x} \left (3 a d^2+4 b c^2\right )}{3 d^6}-\frac {x^2 \left (3 a d^2+4 b c^2\right )}{3 d^4 \sqrt {d x-c} \sqrt {c+d x}}+\frac {b x^4}{3 d^2 \sqrt {d x-c} \sqrt {c+d x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 75
Rule 100
Rule 471
Rubi steps
\begin {align*} \int \frac {x^3 \left (a+b x^2\right )}{(-c+d x)^{3/2} (c+d x)^{3/2}} \, dx &=\frac {b x^4}{3 d^2 \sqrt {-c+d x} \sqrt {c+d x}}-\frac {1}{3} \left (-3 a-\frac {4 b c^2}{d^2}\right ) \int \frac {x^3}{(-c+d x)^{3/2} (c+d x)^{3/2}} \, dx\\ &=-\frac {\left (4 b c^2+3 a d^2\right ) x^2}{3 d^4 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {b x^4}{3 d^2 \sqrt {-c+d x} \sqrt {c+d x}}-\frac {\left (3 a+\frac {4 b c^2}{d^2}\right ) \int \frac {x \left (-2 c^2-2 c d x\right )}{\sqrt {-c+d x} (c+d x)^{3/2}} \, dx}{3 c d^2}\\ &=-\frac {\left (4 b c^2+3 a d^2\right ) x^2}{3 d^4 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {b x^4}{3 d^2 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {\left (2 \left (3 a+\frac {4 b c^2}{d^2}\right )\right ) \int \frac {x}{\sqrt {-c+d x} \sqrt {c+d x}} \, dx}{3 d^2}\\ &=-\frac {\left (4 b c^2+3 a d^2\right ) x^2}{3 d^4 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {b x^4}{3 d^2 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {2 \left (4 b c^2+3 a d^2\right ) \sqrt {-c+d x} \sqrt {c+d x}}{3 d^6}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 72, normalized size = 0.63 \begin {gather*} \frac {-8 b c^4-6 a c^2 d^2+4 b c^2 d^2 x^2+3 a d^4 x^2+b d^4 x^4}{3 d^6 \sqrt {-c+d x} \sqrt {c+d x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.33, size = 76, normalized size = 0.66
method | result | size |
gosper | \(-\frac {-b \,d^{4} x^{4}-3 a \,d^{4} x^{2}-4 b \,c^{2} d^{2} x^{2}+6 a \,c^{2} d^{2}+8 b \,c^{4}}{3 \sqrt {d x +c}\, d^{6} \sqrt {d x -c}}\) | \(68\) |
default | \(\frac {\sqrt {d x -c}\, \left (-b \,d^{4} x^{4}-3 a \,d^{4} x^{2}-4 b \,c^{2} d^{2} x^{2}+6 a \,c^{2} d^{2}+8 b \,c^{4}\right )}{3 \left (-d x +c \right ) d^{6} \sqrt {d x +c}}\) | \(76\) |
risch | \(-\frac {\left (b \,d^{2} x^{2}+3 a \,d^{2}+5 b \,c^{2}\right ) \left (-d x +c \right ) \sqrt {d x +c}}{3 d^{6} \sqrt {d x -c}}-\frac {c^{2} \left (a \,d^{2}+b \,c^{2}\right ) \sqrt {\left (d x -c \right ) \left (d x +c \right )}}{d^{6} \sqrt {-\left (d x +c \right ) \left (-d x +c \right )}\, \sqrt {d x -c}\, \sqrt {d x +c}}\) | \(115\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 123, normalized size = 1.07 \begin {gather*} \frac {b x^{4}}{3 \, \sqrt {d^{2} x^{2} - c^{2}} d^{2}} + \frac {4 \, b c^{2} x^{2}}{3 \, \sqrt {d^{2} x^{2} - c^{2}} d^{4}} + \frac {a x^{2}}{\sqrt {d^{2} x^{2} - c^{2}} d^{2}} - \frac {8 \, b c^{4}}{3 \, \sqrt {d^{2} x^{2} - c^{2}} d^{6}} - \frac {2 \, a c^{2}}{\sqrt {d^{2} x^{2} - c^{2}} d^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.33, size = 80, normalized size = 0.70 \begin {gather*} \frac {{\left (b d^{4} x^{4} - 8 \, b c^{4} - 6 \, a c^{2} d^{2} + {\left (4 \, b c^{2} d^{2} + 3 \, a d^{4}\right )} x^{2}\right )} \sqrt {d x + c} \sqrt {d x - c}}{3 \, {\left (d^{8} x^{2} - c^{2} d^{6}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 200 vs.
\(2 (97) = 194\).
time = 0.57, size = 200, normalized size = 1.74 \begin {gather*} \frac {{\left (2 \, {\left (d x + c\right )} {\left ({\left (d x + c\right )} {\left (\frac {{\left (d x + c\right )} b}{d^{6}} - \frac {4 \, b c}{d^{6}}\right )} + \frac {10 \, b c^{2} d^{24} + 3 \, a d^{26}}{d^{30}}\right )} - \frac {3 \, {\left (9 \, b c^{3} d^{24} + 5 \, a c d^{26}\right )}}{d^{30}}\right )} \sqrt {d x + c}}{6 \, \sqrt {d x - c}} + \frac {2 \, {\left (b^{2} c^{8} + 2 \, a b c^{6} d^{2} + a^{2} c^{4} d^{4}\right )}}{{\left (b c^{4} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2} + a c^{2} d^{2} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2} + 2 \, b c^{5} + 2 \, a c^{3} d^{2}\right )} d^{6}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.80, size = 90, normalized size = 0.78 \begin {gather*} \frac {\sqrt {d\,x-c}\,\left (\frac {x^2\,\left (4\,b\,c^2\,d^2+3\,a\,d^4\right )}{3\,d^7}-\frac {8\,b\,c^4+6\,a\,c^2\,d^2}{3\,d^7}+\frac {b\,x^4}{3\,d^3}\right )}{x\,\sqrt {c+d\,x}-\frac {c\,\sqrt {c+d\,x}}{d}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________